tar xf ${DOWNLOADDIR}/cmake-4.1.1.tar.gz -C ${BUILDDIR}
pushd ${BUILDDIR}/cmake-4.1.1
    mkdir build
    pushd build
        cmake -DCMAKE_CXX_COMPILER="${CROSS_TARGET}-g++" -DCMAKE_C_COMPILER="${CROSS_TARGET}-gcc" \
              -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_DOC_DIR=/share/doc/cmake-4.1.1 \
              -DOPENSSL_ROOT_DIR=${SYSDIR}/sysroot/usr -DCMAKE_BUILD_TYPE=Release ../
        sed -i "/P cmake_install.cmake/s@\tbin/cmake@\t/bin/cmake@g" Makefile
        make ${JOBS}
        make DESTDIR=${SYSDIR}/sysroot install
    popd
popd
